add_library(se_modules_pin_auth_ipc_proxy_obj OBJECT src/proxy/pin_auth_ipc_proxy.c)
target_include_directories(se_modules_pin_auth_ipc_proxy_obj PUBLIC inc)
target_include_directories(se_modules_pin_auth_ipc_proxy_obj PRIVATE ${SE_BASE_SERVICES_DEFAULT_INC})
target_include_directories(se_modules_pin_auth_ipc_proxy_obj PRIVATE src/proxy)
target_compile_options(se_modules_pin_auth_ipc_proxy_obj PRIVATE ${SE_BASE_SERVICES_DEFAULT_CC})
target_link_libraries(se_modules_pin_auth_ipc_proxy_obj PRIVATE logger_obj)
target_link_libraries(se_modules_pin_auth_ipc_proxy_obj PRIVATE parcel_obj)
target_link_libraries(se_modules_pin_auth_ipc_proxy_obj PRIVATE se_base_services_defines)
if(OPTION_SECUREC_INDEPENDENT)
    message(STATUS "se_modules_pin_auth_ipc_proxy_obj use independent secure c.")
    target_link_libraries(se_modules_pin_auth_ipc_proxy_obj PRIVATE securec_interface)
endif()

if(ENABLE_TESTING)
    target_include_directories(se_modules_pin_auth_ipc_proxy_obj PUBLIC src/proxy)
endif()

add_library(
    se_modules_pin_auth_ipc_stub_obj OBJECT
    src/stub/pin_auth_ipc_stub.c
    src/stub/pin_auth_ipc_stub_inner.c
    src/stub/pin_auth_core.c
    src/stub/pin_auth_core_inner.c
)
target_include_directories(se_modules_pin_auth_ipc_stub_obj PUBLIC inc)
target_include_directories(se_modules_pin_auth_ipc_stub_obj PRIVATE ${SE_BASE_SERVICES_DEFAULT_INC})
target_include_directories(se_modules_pin_auth_ipc_stub_obj PRIVATE src/inc)
target_compile_options(se_modules_pin_auth_ipc_stub_obj PRIVATE ${SE_BASE_SERVICES_DEFAULT_CC})
target_link_libraries(se_modules_pin_auth_ipc_stub_obj PRIVATE logger_obj)
target_link_libraries(se_modules_pin_auth_ipc_stub_obj PRIVATE se_base_services_defines)
target_link_libraries(se_modules_pin_auth_ipc_stub_obj PRIVATE se_apdu_core_obj)
target_link_libraries(se_modules_pin_auth_ipc_stub_obj PRIVATE parcel_obj)
target_link_libraries(se_modules_pin_auth_ipc_stub_obj PRIVATE se_modules_common_ipc_stub_obj)
if(OPTION_SECUREC_INDEPENDENT)
    message(STATUS "se_modules_pin_auth_ipc_stub_obj use independent secure c.")
    target_link_libraries(se_modules_pin_auth_ipc_stub_obj PRIVATE securec_interface)
endif()

if(ENABLE_TESTING)
    target_include_directories(se_modules_pin_auth_ipc_stub_obj PUBLIC src/stub)
endif()
